package com.revai.engine.basic.mapper;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TableMapper {
    public List<Map<String, Object>> getTableData(@Param("tableName") String tableName,
            @Param("fields") List<Map<String, Object>> fields,
            @Param("conditions") Map<String, Object> conditions);
    void addTableData(@Param("tableName") String tableName, @Param("fields") List<Map> fields,
            @Param("form") Map<String, Object> form);

    void updateTableData(@Param("tableName") String tableName, @Param("fields") List<Map> fields,
            @Param("form") Map<String, Object> form);

    void deleteTableData(@Param("tableName") String tableName, @Param("id") Long id);
}
